import { RouteRecordRaw } from 'vue-router';
import { PAGE_CODE } from "@/config/constVar";

const routes: Array<RouteRecordRaw> = [
  /**
   * 登录页面
   */
  {
    path: "/login",
    name: "Login",
    meta: {
      title: "登录页面",
      code: PAGE_CODE.PUBLIC
    },
    component: () => import("@/views/Login"),
  },
  /**
 * 404
 */
  {
    path: "/404",
    name: "PageNone",
    meta: {
      title: "404",
      code: PAGE_CODE.PUBLIC
    },
    component: () => import("@/views/app/PageNone"),
  },
  /**
 * 应用首页
 */
  {
    path: "/apphome",
    name: "AppHome",
    meta: {
      title: "应用首页",
      code: PAGE_CODE.USER
    },
    component: () => import("@/views/app/AppHome"),
  },
]

export default routes
